package cn.jiyun.controller;

import cn.jiyun.dto.CatalogsDTO;
import cn.jiyun.feign.CatalogsFeign;
import cn.jiyun.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 季乾帅
 * @create 2023/8/25 20:43
 */
@RestController
@RequestMapping("/catalogs")
public class CatalogsController {
    @Autowired
    private CatalogsFeign catalogsFeign;

    @RequestMapping("/findCatalogs")
    public Result findAll(Integer cid,@RequestBody CatalogsDTO catalogsDTO) {
        return catalogsFeign.findAll(cid,catalogsDTO);
    }
}
